home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7048 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  851 b 

  1. Path: hamlet.uncg.edu!q_zhong
  2. From: "QIAN . ZHONG" <q_zhong@hamlet.uncg.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Overload subscript [] global for all types
  5. Date: Tue, 20 Feb 1996 22:23:07 -0500
  6. Organization: The University of North Carolina at Greensboro
  7. Message-ID: <Pine.SOL.3.91.960220221810.17026A-100000@hamlet.uncg.edu>
  8. NNTP-Posting-Host: hamlet.uncg.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12.  
  13.  Hi, folks:
  14.  
  15.  What is the simplest way to overload subscript [] for all type, I want 
  16.  add bounds check to every array ( char, int, struct, class ) in my program,
  17.  how can I do it ?
  18.  
  19.  How to overload *, unary operator too.
  20.  
  21.  Any suggestion ? Please reply me in mail, this is important to me, I do not
  22.  want to miss your valuable reply.
  23.  
  24.  
  25.  Qian Zhong
  26.  Department of Chemistry.
  27.  UNC, Greensboro
  28.  Email: q_zhong@hamlet.uncg.edu
  29.  
  30.  
  31.